package com.frejoys.common.dto.app;

import com.frejoys.common.dto.common.PageDto;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class GoodsFiltrationListDto extends PageDto {

    @Schema(type = "Integer", name = "categoryId", description = "品类id", required = true, defaultValue = "1")
    private Integer categoryId;

    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "sort", description = "默认0 1价钱降序 2价钱升序 3销售降序  4销售降序", required = true, defaultValue = "1")
    private Integer sort;

    @Schema(type = "Integer", name = "site", description = "位置 1首页顶部，2.首页商品列表", required = true, defaultValue = "1")
    private Integer site;

    @Schema(type = "double", name = "lng", description = "经度", required = true, defaultValue = "1")
    private double lng;

    @Schema(type = "double", name = "lat", description = "纬度", required = true, defaultValue = "1")
    private double lat;

}
